package com.wenx.v3system.modular.cloud.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * 用户认证响应DTO
 */
@Data
@Schema(description = "用户认证响应")
public class UserAuthResponseDto {

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "用户名", example = "测试用户")
    private String username;



    @Schema(description = "邮箱", example = "test@example.com")
    private String email;

    @Schema(description = "手机号", example = "13888888888")
    private String phone;

    @Schema(description = "头像", example = "http://example.com/avatar.jpg")
    private String avatar;

    @Schema(description = "性别 (0-女, 1-男, 2-未知)", example = "1")
    private Integer gender;

    @Schema(description = "年龄", example = "25")
    private Integer age;

    @Schema(description = "用户状态 (0-禁用, 1-启用)", example = "1")
    private Integer status;

    @Schema(description = "部门ID", example = "1")
    private Long departmentId;

    @Schema(description = "个人描述", example = "这是一个测试用户")
    private String description;

    @Schema(description = "是否超级管理员 (0-否, 1-是)", example = "0")
    private Integer superAdmin;

    @Schema(description = "权限标识集合", example = "[\"user:read\", \"user:write\"]")
    private Set<String> permissions;

    @Schema(description = "角色ID集合", example = "[1, 2]")
    private Set<Long> roleIds;

    @Schema(description = "访问令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String accessToken;

    @Schema(description = "刷新令牌", example = "refresh_token_12345")
    private String refreshToken;

    @Schema(description = "令牌类型", example = "Bearer")
    private String tokenType = "Bearer";

    @Schema(description = "令牌过期时间（秒）", example = "3600")
    private Long expiresIn;

    @Schema(description = "登录时间")
    private LocalDateTime loginTime;

    @Schema(description = "响应消息", example = "登录成功")
    private String message;
} 